package com.ecar.core.common.entity;

import java.io.Serializable;

public class Dictionary implements Serializable {
    private Integer id;

    private String name;

    private String theNode;

    private String parentNode;

    private String pid;

    private Integer ordyBy;

    private Integer hierarchy;

    private String remark;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTheNode() {
        return theNode;
    }

    public void setTheNode(String theNode) {
        this.theNode = theNode;
    }

    public String getParentNode() {
        return parentNode;
    }

    public void setParentNode(String parentNode) {
        this.parentNode = parentNode;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getOrdyBy() {
        return ordyBy;
    }

    public void setOrdyBy(Integer ordyBy) {
        this.ordyBy = ordyBy;
    }

    public Integer getHierarchy() {
        return hierarchy;
    }

    public void setHierarchy(Integer hierarchy) {
        this.hierarchy = hierarchy;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dictionary other = (Dictionary) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTheNode() == null ? other.getTheNode() == null : this.getTheNode().equals(other.getTheNode()))
            && (this.getParentNode() == null ? other.getParentNode() == null : this.getParentNode().equals(other.getParentNode()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getOrdyBy() == null ? other.getOrdyBy() == null : this.getOrdyBy().equals(other.getOrdyBy()))
            && (this.getHierarchy() == null ? other.getHierarchy() == null : this.getHierarchy().equals(other.getHierarchy()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTheNode() == null) ? 0 : getTheNode().hashCode());
        result = prime * result + ((getParentNode() == null) ? 0 : getParentNode().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getOrdyBy() == null) ? 0 : getOrdyBy().hashCode());
        result = prime * result + ((getHierarchy() == null) ? 0 : getHierarchy().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}